package com.example.yuntiku.entity;

import java.util.ArrayList;
import java.util.List;

public class Product {
  private int pid;
  private String pname;
  private int ptype;
  private int parentid;

  public int getParentid() {
    return parentid;
  }

  public void setParentid(int parentid) {
    this.parentid = parentid;
  }

  private List<Product> children = new ArrayList<>();

  // ...其他方法

  public List<Product> getChildren() {
    return children;
  }

  public void setChildren(List<Product> children) {
    this.children = children;
  }


  public int getPid() {
    return pid;
  }

  public void setPid(int pid) {
    this.pid = pid;
  }

  public String getPname() {
    return pname;
  }

  public void setPname(String pname) {
    this.pname = pname;
  }

  public int getPtype() {
    return ptype;
  }

  public void setPtype(int ptype) {
    this.ptype = ptype;
  }
}